# @Time : 2021/6/25 17:53 

# @Author : zhujianhao

# @File : dict_to_yaml.py 

# @Software: PyCharm

import yaml

# python原生的列表
x = {"codeName":"1","userList":[{"id":"1408251407098429441","userid":"60d53fef9604db6b961fbbd3","name":"UAT_OPPO1","avatar":"http://wework.qpic.cn/bizmail/N6T1qTnf2FlG2h7lKvNRDwArsOICKxnxxmQhjrOw72AYCbU6pxcMrw/0","status":1,"thumbAvatar":"http://wework.qpic.cn/bizmail/N6T1qTnf2FlG2h7lKvNRDwArsOICKxnxxmQhjrOw72AYCbU6pxcMrw/100","companyUserId":"60d53fef9604db77d168ee63","checked":True}],"autoAccept":1,"tagIds":[]}
# 打印表表和字典

# 转换打印
y = yaml.safe_dump(x, default_flow_style=False)

# print(y)
print(y)
